<?php

namespace App\Models;

use App\Enums\PaymentStatus;
use BenSampo\Enum\Traits\CastsEnums;

/**
 * @mixin IdeHelperRegistryOrder
 */
class RegistryOrder extends BaseModel
{
    use CastsEnums;

    protected $casts = [
        'pay_status' => PaymentStatus::class,
    ];

    public function registry()
    {
        return $this->belongsTo(Registry::class);
    }
}
